package com.study.system.search.client;

import com.study.system.entity.Course;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient("edu-course-service")
public interface CourseServiceFeignClient {

    @GetMapping("/courses")
    ResponseEntity<List<Course>> getAllCourses();
}
